package com.zzy.database.pojo;

import lombok.Data;
import java.math.BigDecimal;
import java.util.Date;


public class Loan {
    private String loanId;//贷款ID
    private String customerId;//用户id
    private BigDecimal amount;//数额
    private Date issueDate;//贷款日期
    private String loanStatus; // "已还" 或 "未还"

    public Loan() {
    }

    public Loan(String loanId, String customerId, BigDecimal amount, Date issueDate, String loanStatus) {
        this.loanId = loanId;
        this.customerId = customerId;
        this.amount = amount;
        this.issueDate = issueDate;
        this.loanStatus = loanStatus;
    }

    /**
     * 获取
     * @return loanId
     */
    public String getLoanId() {
        return loanId;
    }

    /**
     * 设置
     * @param loanId
     */
    public void setLoanId(String loanId) {
        this.loanId = loanId;
    }

    /**
     * 获取
     * @return customerId
     */
    public String getCustomerId() {
        return customerId;
    }

    /**
     * 设置
     * @param customerId
     */
    public void setCustomerId(String customerId) {
        this.customerId = customerId;
    }

    /**
     * 获取
     * @return amount
     */
    public BigDecimal getAmount() {
        return amount;
    }

    /**
     * 设置
     * @param amount
     */
    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    /**
     * 获取
     * @return issueDate
     */
    public Date getIssueDate() {
        return issueDate;
    }

    /**
     * 设置
     * @param issueDate
     */
    public void setIssueDate(Date issueDate) {
        this.issueDate = issueDate;
    }

    /**
     * 获取
     * @return loanStatus
     */
    public String getLoanStatus() {
        return loanStatus;
    }

    /**
     * 设置
     * @param loanStatus
     */
    public void setLoanStatus(String loanStatus) {
        this.loanStatus = loanStatus;
    }

    public String toString() {
        return "Loan{loanId = " + loanId + ", customerId = " + customerId + ", amount = " + amount + ", issueDate = " + issueDate + ", loanStatus = " + loanStatus + "}";
    }
}
